<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../css/general.css" rel="stylesheet" type="text/css">
	<link href="../css/main.css" rel="stylesheet" type="text/css">
	<title></title>
</head>
<body>
	<h1>
		<span class="action-span"><a href="partnerAdd">添加新合作方</a></span>
		<span class="action-span1">合作方列表 </span>
		<div style="clear:both"></div>
	</h1>
	<div class="list-div" id="listDiv">
		<table cellpadding="3" cellspacing="1">
			<tbody><tr>
			    <th>编号</th>
			    <th>合作方名称</th>
			    <th>合作方联系人</th>
			    <th>结算周期</th>
			    <th>账户</th>
			    <th>合作状态</th>
  			</tr>
<c:forEach items="${partners}" var="partner">
<tr>
<td>${partner.id}</td>
<td><a href="partnerEdit?id=${partner.id}">${partner.name}</a></td>
<td>${partner.contact}</td>
<td><c:if test="${partner.cycle == 1}">周结</c:if><c:if test="${partner.cycle == 2}">月结</c:if></td>
<td>${partner.account}</td>
<td>
<c:if test="${partner.status == 1}"><font color="green">合作中</font></c:if>
<c:if test="${partner.status == 0}"><font color="red">终止合作</font></c:if>
</td>
</tr>
</c:forEach>

		</tbody></table>
	</div>

</body>
</html>